/**
 * form表单
 */
seajs.use(["zui/uploadImage",'zui/dialog','zui/utils','zui/ajax'],function(Upload,zDialog,zUtils,zAjax){
	var minPhoto = $("#minPhoto").val();
	$("#zaw-btn").on("click",function(){
		var upLen = $("#photoRoom").find(".group_imgupload_view").length;
			if( upLen < minPhoto ){
				App.showToast("您还有资料未上传");
			}else{
				selectPhotoFinish();
			}
	});
});
var selectPhoto = function(obj){
	window.location.hash="photo";
};
window.location.hash="#";
window.onload=function(){
	window.onhashchange=function(){
		$('#moveContain').show();
		if(window.location.hash == '#photo'){
			$('#moveContain').removeClass('move_right');
			$('#moveContain').addClass('move_left');
			$('#moveContain').css("height",$("html").height());
		}else{
			$('#moveContain').removeClass('move_left');
			$('#moveContain').addClass('move_right');
			var x = document.getElementById("moveContain");
            x.addEventListener("webkitAnimationEnd", endAnimation);
		};
	};
};